import Web3 from 'web3'
import {address, ABI} from '@/util/constants/myContracts'

let getContract = new Promise(function (resolve, reject) {
 let web3 = new Web3(window.web3.currentProvider)
 let myContract = web3.eth.contract(ABI)
 let myContractInstance = myContract.at(address)
 //myContractInstance = () => casinoContractInstance
 resolve(myContractInstance)
})

export default getContract